package com.oolatina;

import com.oolatina.activity.MainActivity;

import android.content.Context;
import android.view.Display;
import android.view.WindowManager;
import android.widget.FrameLayout;

public class VideoView 
{
	FrameLayout _layout;
	Context _context;
	MainActivity _mainactivity;
	int ScreenWidth;
	int ScreenHeight;
	
	public void init(FrameLayout layout, Context thisContext, MainActivity mainactivity)
    {
		_layout = layout;
		_context = thisContext;
		_mainactivity = mainactivity;
		
		WindowManager wm = (WindowManager) _context.getSystemService(Context.WINDOW_SERVICE);
	    Display display = wm.getDefaultDisplay();
	    ScreenWidth = display.getWidth();
	    ScreenHeight = display.getHeight();
	    
	    SCYoutubeView ytview = new SCYoutubeView();
        ytview.init(_layout, _context);
        ytview.setSizePourcent(100, 35);
        ytview.SetPosition(0, 60);
        ytview.setId("4S1FnSdzY1c");
    }
}
